package com.kang.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.kang.Vo.PhotoVo;
import com.kang.bean.Photo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface PhotoService extends IService<Photo> {
    String uploadPhoto(MultipartFile file, Integer groupId);

    PhotoVo queryByGroupId(Long groupId, HttpServletRequest request);

    void deleteById(Long id);

    Photo like(Photo photo, HttpServletRequest request);

    PhotoVo showPhoto();

    void saveLikePhoto();

    void deleteList(List<Photo> photoList, HttpServletRequest request) throws ClassNotFoundException;
}
